$primary: #ff6c35;
$warning: #ed4014; // 警告

/*
 * 主题色列表，生成对应color和background
 * .color-primary { color: #ff6c35 }
 * .background-primary { background-color: #ff6c35 }
 */
$colorList: (
        primary: $primary,
        warning: $warning
);
@each $name in map-keys($colorList) {
  .color-#{$name} {
    color: map-get($colorList, $name);
  }
  .background-#{$name} {
    background-color: map-get($colorList, $name);
  }
}